<?
	require_once '../inc/functions.php';
	require_once 'data.php';
	$section='Users';
	
	
	if(isset($_REQUEST['confirm']))
	{
		if($errors = Delete($_REQUEST['id']))
		{
		}else{
			header("Location: index.php");
		}
	}
	$rs = Get($_REQUEST['id']);
?>

<!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Users</title>
    </head>
    
    <body>
        <ul class="error">
        	<? foreach($errors as $field => $error){ ?>
            	<li><?=$field?>: <?=$error?></li>
            <? } ?>
        </ul>
		<? include("../inc/tabs.php"); ?>
        <h1>Are you sure you want to delete '<?=$rs['Value']?>'?</h1>
        <form method="post">
        	<input type="submit" name="confirm" value="Yes" />
            <a href="index.php">No</a>
        </form>
	</body>
</html>